﻿using System.Collections.Generic;
using Lwllm.ArcengineProxy.Core.Enums;

namespace Lwllm.ArcengineProxy.Core.Models
{
    /// <summary>
    /// 缓存数据集的名称
    /// </summary>
    public class DatasetName
    {
        public DatasetName()
        {

        }

        /// <summary>
        /// 实例化数据集名称对象
        /// </summary>
        /// <param name="datasetType">数据集类型</param>
        /// <param name="name">数据集名称</param>
        public DatasetName(DatasetTypeEnum datasetType, string name)
        {
            this.DatasetType = datasetType;
            this.Name = name;
        }
        /// <summary>
        /// 实例化数据集名称对象
        /// </summary>
        /// <param name="datasetType">数据集类型</param>
        /// <param name="name">数据集名称</param>
        /// <param name="aliasName">数据集别名</param>
        public DatasetName(DatasetTypeEnum datasetType, string name, string aliasName) : this(datasetType, name)
        {
            this.AliasName = aliasName;
        }

        /// <summary>
        /// 数据集名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据集别名
        /// </summary>
        public string AliasName { get; set; }
        /// <summary>
        /// 数据集下的featureclass名称
        /// </summary>
        public List<DatasetName> SubDatasetNames { get; set; }
        /// <summary>
        /// 数据集类型
        /// </summary>
        public DatasetTypeEnum DatasetType { get; set; }
    }
}
